package xddq

import (
	"strings"
	"time"
	D "websocket_apn/define"
	"websocket_apn/proto"
)

//检查邮件内容
func (xd *XdDriver) CheckMailData(info D.EmailInfo) {
	if strings.Contains(info.Title, "聚灵阵被驱逐") {
		go func() {
			//5分钟后开始加入聚灵阵
			time.Sleep(5 * time.Minute)
			task := xd.GetTaskByID(proto.S_GATHER_ENERGY_FIRST_LIST_VIEW)
			task.Enabled = true
		}()
	}
}
